<?php
namespace Lib\WXMicro;

class WXSession
{

    private $appid;

    private $appscrect;

    public function __construct($appid, $appscrect)
    {
        $this->appid = $appid;
        $this->appscrect = $appscrect;
    }

    public function getSessionKey($url)
    {
        $html = file_get_contents($url);
        $result = json_decode($html, true);
        return $result;
    }
}

